package CloudDataBase.Project3.Group3.s12cs342;

import java.util.ArrayList;

public class quizContainer {
	String name, description, subject;
	ArrayList<questionContainer> questions;
	
	/**
	 * Constructor to create a quiz without questions to be loaded in
	 * 
	 * @param name - name of the quiz
	 * @param description - description of the quiz
	 * @param subject - what subject the quiz will generally be on
	 */
	public quizContainer(String name, String description, String subject){
		this.name = name;
		this.description = description;
		this.subject = subject;
		this.questions = new ArrayList<questionContainer>();
	}
	
	/**
	 * Constructor to create a quiz with questions loaded in
	 * 
	 * @param name - name of the quiz
	 * @param description - description of the quiz
	 * @param subject - what subject the quiz will generally be on
	 * @param questions - the list of questions the quiz will have
	 */
	public quizContainer(String name, String description, String subject, ArrayList<questionContainer> questions){
		this.name = name;
		this.description = description;
		this.subject = subject;
		this.questions = questions;
	}
	
	public void addQuestion(questionContainer qc){
		this.questions.add(qc);
	}
}
